<template>
	<view class="collectioncode">
		<view style="width: 690upx; height: 950upx;">
			<view class="header"></view>
			<image style="width: 690upx;margin-left: 30upx; height: 950upx;" :src="img" mode="widthFix" :show-menu-by-longpress="true"></image>		 
			<view class="footer">
				长按上面图片保存到相册
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'妙思堂教育培优，精品课程团购大优惠20节课仅需198元',
				name:'张大鹏',
				img: ""
			}
		},
		onLoad(option) {
			console.log(option)
			let store_id = parseInt(option.store_id,10);
			if(!store_id>0){
				store_id = uni.getStorageSync('store_id')
			}else{
				uni.setStorageSync('store_id', store_id)
			}
			this.store_id = store_id
			this.$store.commit('updateStoreId',store_id)
			
			let data={
				token:this.$store.getters.getToken,
				activity_id:option.activity_id,
				customer_id:option.customer_id,
				// #ifdef H5
				in_type:'h5'
				// #endif
				// #ifdef MP-WEIXIN
				in_type:'min',
				// #endif
			}
			this.$api.baoming_collection_qr_code(data).then(res=>{
				if(res.status){
					this.img=res.data
				}
				console.log(res,'collection_qr_code_res')
			})
		},
		onShow() {
		},
		methods: {
			
		}
	}
</script>

<style>
	.collectioncode{
		position: fixed;
		height: 100%;
		width: 100%;
		background: #F3F3F4;
	}
	.header{
		width: 610upx;
		padding: 44upx 40upx 36upx;
		/* color: #333333; */
		/* font-size: 36upx; */
		margin-left: 30upx;
		/* margin-top: 30upx; */
		/* border-radius: 16upx 16upx 0 0; */
		/* background-color: #ffffff; */
	}
	.content{
		height: 694upx;
		width: 690upx;
		padding-top: 80upx;
		margin-left: 30upx;
		text-align: center;
		border-bottom-left-radius: 20upx;
		border-bottom-right-radius: 20upx;
		background-color: #26AF65;
	}
	.footer{
		font-family: PingFangSC-Regular;
		width: 750upx;
		margin-top: 20upx;
		color: #666666;
		letter-spacing: 0;
		text-align: center;
		font-size: 28upx;
	}
</style>
